from django.urls import re_path

from questions import views

urlpatterns = [
    re_path(r"^labels/$",views.QuestionsView.as_view()),
    re_path(r"^labels/users/$",views.UsersLabelView.as_view()),
    re_path(r"^questions/(?P<id>-?[1-9]\d*)/label/new/$",views.NewQuestionsView.as_view()),
    re_path(r"^questions/(?P<id>-?[1-9]\d*)/label/hot/$",views.HotQuestionsView.as_view()),
    re_path(r"^questions/(?P<id>-?[1-9]\d*)/label/wait/$",views.WaitQuestionsView.as_view()),
    re_path(r"^questions/$",views.PublishQuestionsView.as_view()),
    re_path(r"^questions/(?P<pk>\d+)/$",views.DetQuestionsView.as_view()),

]
